using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DataStructure
{
    public interface IDictionary<Key , Value>
    {
        //查看键值对的数量
        int Count { get; }
        bool IsEmpty { get; }
        void Add(Key key, Value value);
        void Remove(Key key);
        //是否包含键
        bool ContainsKey(Key key);
        //获取键对应的值
        Value Get(Key key);
        //更嘎为新值
        void Set(Key key, Value value);
    }
}